@echo off
if "%OS%" == "Windows_NT" setlocal
SET TOOLDIR=%CD%

: Switch to trunk-dir
cd ../trunk

: Build current snapshot
echo.
echo Build current-snapshot.oex from woking directory...
del ..\build\current-snapshot.oex
%TOOLDIR%\7za.exe a -r -tzip -y -xr!?svn\* ..\build\current-snapshot.oex * >out
del out

cd %TOOLDIR%